// Author: Ivan Chau
package uk.ac.cam.kcic2.math;

public class RotationY extends Rotation {

	private final double radians;
	
	public RotationY(double theta){
		super(new double[][]{
				{Math.cos(theta),0,Math.sin(theta),0},
				{0,1,0,0},
				{-Math.sin(theta),0,Math.cos(theta),0},
				{0,0,0,1}
		});
		radians = theta;
	}
	
	public RotationY inverse(){
		return new RotationY(-radians);
	}
	
}
